package com.ossjk.qlh.tgb.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ossjk.qlh.tgb.entity.UserShoppingCart;
import com.ossjk.qlh.tgb.vo.UserShoppingCartDetailVo;
import com.ossjk.qlh.tgb.vo.UserShoppingCartVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName UserShoppingCartMapper
 * @Description 用户购物车
 * @Author LZH
 * @Date 2022/1/18 15:47
 */
public interface UserShoppingCartMapper extends BaseMapper<UserShoppingCart> {
    Page selectPageVo(Page page, @Param(Constants.WRAPPER)Wrapper wrapper);

    List<Integer> getUserShoppingCartCount(String uid);

    List<UserShoppingCartDetailVo> getUserShoppingDetail(String uid);
}
